package com.alcj.service.impl;

import com.alcj.mapper.CostMapper;
import com.alcj.model.Cost;
import com.alcj.service.CostService;
import com.alcj.service.StationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author : wangpf
 * @version : v1.0
 * @Package : com.alcj.service.impl
 * @Description : 汽车检测站收费业务逻辑实现类
 * @date : 2017/10/17 10:37
 */
@Service
public class CostServiceImpl implements CostService {

    /**
     * 汽车检测站收费数据库接口
     */
    @Autowired
    CostMapper costMapper;

    /**
     * @Author: wangpf
     * @Description: 根据检测站ID获取该检测站收费列表
     * @Date 2017/10/30 10:59
     * @param stationId 检测站ID
     * @return costList 检测站收费列表
     */
    @Override
    public List<Cost> selectCostListByStationId(String stationId) throws Exception {

        List<Cost> costList = this.costMapper.selectCostListByStationId(stationId);

        // 返回结果
        return costList;
    }

//    /**
//     * @Author: wangpf
//     * @Description: 根据检测站ID获取该检测站收费列表
//     * @Date 2017/10/30 10:59
//     * @param vehicleTypeId 检测站ID
//     * @return costList 检测站收费列表
//     */
//    @Override
//    public Integer getResidualNumber(String vehicleTypeId,String reservationDay,String reservationStartTime,String reservationEndTime) throws Exception {
//
//        Integer residualNumber = this.costMapper.selectGetResidualNumber(vehicleTypeId,reservationDay,reservationStartTime,reservationEndTime);
//
//        // 返回结果
//        return residualNumber;
//    }

//    /**
//     * @Author: wangpf
//     * @Description: 获取检测站列表
//     * @Date: 2017/10/17 10:59
//     * @param: stationSearchCondition 页面检索条件
//     * @return: stationList 检测站列表
//     */
//    @Override
//    public List<Station> selectStationListByCondition(Map stationSearchCondition) throws Exception {
//
//        List<Station> stationList = this.stationMapper.selectStationListByCondition(stationSearchCondition);
//
//        // 返回结果
//        return stationList;
//    }
//
//    /**
//     * @Author: wangpf
//     * @Description: 根据检测站ID获取检测站信息
//     * @Date: 2017/10/30 10:59
//     * @param: stationId 检测站ID
//     * @return: stationDetail 检测站信息
//     */
//    @Override
//    public Station selectStationDetailByStationId(String stationId) throws Exception {
//
//        Station stationDetail = this.stationMapper.selectByPrimaryKey(stationId);
//
//        // 返回结果
//        return stationDetail;
//    }
}
